import { createApp } from 'vue';
import App from './App.vue';  
import router from './router';
import '@/assets/basic.css';  
 
// Element Plus 导入 
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';  
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
 
// Axios 导入 
import axios from 'axios';
 
const app = createApp(App);
 
// 使用路由 
app.use(router); 
 
// 使用 ElementPlus 
app.use(ElementPlus); 
 
// 注册 Element Plus 图标 
for (const [key, component] of Object.entries(ElementPlusIconsVue))  {
  app.component(key,  component);
}
 

// 将 axios 挂载到 Vue 实例 
app.config.globalProperties.$axios  = axios;






 
app.mount('#app'); 